public class Computer implements PlayGame{
    String brand;
    double price;

    public Computer() {
    }

    public Computer(String brand, double price) {
        this.brand = brand;
        this.price = price;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public void playGame() {
        System.out.println("正在用"+price+brand+"元的"+"电脑玩游戏");
    }

    public void coding()
    {
        System.out.println("正在用"+price+"元的"+brand+"电脑开发JavaEE应用");
    }
}
